package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.vo.album.TrackMediaInfoVo;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface VodService {
    /**
     * 上传媒体文件
     * @param file
     * @return
     */
    Map<String, Object> uploadTrack(MultipartFile file);

    /**
     * 获取声音对象
     * @param mediaFileId
     * @return
     */
    TrackMediaInfoVo getMediaInfo( String mediaFileId);

    void removeMedia(String mediaFileId);

    /**
     * 根据旧的mediaFileId删除云点播
     * @param oldMediaFileId
     */
    void removeMediaByFileId(String oldMediaFileId);
}
